Control points were backwards
authorparkrrrr <parkrrrr>
Wed, 21 Jun 2006 12:34:46 +0000 (12:34 +0000)
committerparkrrrr <parkrrrr>
Wed, 21 Jun 2006 12:34:46 +0000 (12:34 +0000)
saroute.c

index a93056ad3027c155e1837cec5873406bed808c84..bbef33c05d13e098e88fcfb21e46c050a68dfea7 100644 (file)
--- a/saroute.c
+++ b/saroute.c
@@ -201,10 +201,11 @@ my_read(void)
                        record = ReadRecord(infile, recsize);
                        latlon = (struct ll *)(record);
 
+                       /* These records are backwards for some reason */
                        lat = (0x80000000UL -
-                              le_read32(&latlon->lat)) / (double)(0x800000);
-                       lon = (0x80000000UL -
                               le_read32(&latlon->lon)) / (double)(0x800000);
+                       lon = (0x80000000UL -
+                              le_read32(&latlon->lat)) / (double)(0x800000);
        
                        wpt_tmp = waypt_new();
                        wpt_tmp->latitude = lat;